<template>
  <div class="sale">
    <div style="width: 100%; height: 1.226667rem"></div>
    <div class="header-bar">
      <div class="bar-left"></div>
      <div class="bar-center">优惠券</div>
      <div class="bar-right">失效券</div>
    </div>
    <!-- 优惠券的item -->
    <sale-item></sale-item>
    <sale-item></sale-item>
    <sale-item></sale-item>
    <sale-item></sale-item>
    <sale-item></sale-item>
    <sale-item></sale-item>
    <sale-item></sale-item>
    <sale-item></sale-item>
    <sale-item></sale-item>
  </div>
</template>

<script>
import saleItem from "../components/sale/saleItem";
export default {
  components: {
    saleItem,
  },
};
</script>

<style lang="scss" scoped>
.sale {
  width: 100%;
  height: 100%;
  background-color: #f5f5f5;
  .header-bar {
    width: 100%;
    height: 1.226667rem;
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    .bar-center {
      flex: 1;
      text-align: center;
      font-size: 0.48rem;
      padding-left: 0.266667rem;
    }
    .bar-left {
      width: 0.266667rem;
      height: 0.453333rem;
      background: url("../static/img/back.png") no-repeat center;
      background-size: contain;
      margin-left: 0.493333rem;
    }
    .bar-right {
      font-size: 0.426667rem;
      margin-right: 0.453333rem;
    }
  }
}
</style>